package com.yunang.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author esncode
 */

@Data
@TableName("oa_department")
public class OaDepartment {

    @TableId(type = IdType.AUTO)
    private Long departmentId;

    private String departmentName;

    private Integer departmentCharger;

    private String departmentInfo;

    private Integer parent;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;

    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


    @TableField(exist = false)
    private OaUser oaUser;

}
